package com.hj.demo;

public class Demo1 {
    static int num;
    static {
        System.out.println(++num);
    }
    {
        System.out.println(++num);
    }
    public Demo1(){
        System.out.println(++num);
    }
    public Demo1(int number){
        this();
        Demo1.num=number;
        System.out.println(++num);
    }
}
class Demo{
    public static void main(String[] args) {
        new Demo1(6);
        new Demo1();
    }
}
